Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(jobs): improve MLOps example #82

Merged
merged 15 commits into from
Jun 28, 2024
Merged

feat(jobs): improve MLOps example #82

merged 15 commits into from
Jun 28, 2024

Conversation

redanrd
Copy link
Contributor

@redanrd redanrd commented Apr 17, 2024

Summary

Improve MLOps example:

  • Make MLOps pipeline automatic after first deployment using CRON schedules to: fetch data from source then train model regularly, and deploy the latest model version from model registry. The schema is useful when the data provided by source grows, which would in general improve inference server performance.

  • Code formatting.

Checklist

  • I have reviewed this myself.
  • I have attached a README to my example. You can use this template as reference.
  • I have updated the project README to link my example.

@redanrd redanrd marked this pull request as ready for review May 7, 2024 13:52
@@ -12,7 +12,7 @@ resource "scaleway_container" "inference" {
cpu_limit = 2000
memory_limit = 2048
min_scale = 1
max_scale = 5
max_scale = 1
Copy link
Contributor Author

@redanrd redanrd May 7, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We need to preserve the container state as we load the model in memory. Having many instances would possibly lead to ones with no model loaded in memory so they would fail when requested for inference.

jobs/ml-ops/terraform/container.tf Show resolved Hide resolved
@redanrd redanrd requested review from Shillaker and cyclimse May 7, 2024 14:01
jobs/ml-ops/terraform/images.tf Outdated Show resolved Hide resolved
jobs/ml-ops/terraform/variables.tf Outdated Show resolved Hide resolved
jobs/ml-ops/README.md Outdated Show resolved Hide resolved
jobs/ml-ops/README.md Outdated Show resolved Hide resolved
@redanrd redanrd merged commit 4eecda3 into main Jun 28, 2024
7 of 8 checks passed
@redanrd redanrd deleted the mlops-example branch June 28, 2024 08:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants